package com.lingxu.module.modelScore.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lingxu.module.modelScore.entity.ModelScoreBase;
import com.lingxu.module.modelScore.entity.ModelScoreVO;
import com.lingxu.module.modelScore.entity.RunSum;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Title: ModelScoreBaseMapper
 * @Package: com.ptmh.module.modelScore.mapper
 * @Author: ysj闫世杰
 * @Email: 1105324813@qq.com
 * @Date: Created in 2023/11/29 16:13
 * @Description:
 * @Version: 1.0.0
 */
public interface ModelScoreBaseMapper extends BaseMapper<ModelScoreBase> {

    List<ModelScoreVO> findModelScoreBase() throws Exception;

    List<ModelScoreVO> findChildModelScoreBase(String pid) throws Exception;

    List<String> findAllModel(String id);

    void updateModelScore(@Param("masterId") String masterId, @Param("result") BigDecimal result);

    BigDecimal findTableCount(String masterId);

    BigDecimal findModelCount(String masterId);

    BigDecimal findModelOperator(String masterId);

    BigDecimal findResultFeedback(@Param("masterId") String masterId,@Param("type") String type);

    String findModelArea(String masterId);

    BigDecimal findAreaUseCount(@Param("list") List<String> list);

    List<String> findCloneModelIds(@Param("masterId") String masterId,@Param("area") String area,@Param("flag") String flag);

    BigDecimal findModelDataCounts(@Param("list") List<String> modelIds);

    List<RunSum> findModelRunList(String id);

    List<String> findLinkModelId(String masterId);
}
